Skip to content

Conversation

@joaquim-verges
Copy link
Member

@joaquim-verges joaquim-verges commented Oct 18, 2024

Problem solved

CleanShot 2024-10-18 at 14.59.26.png


PR-Codex overview

This PR enhances the Ecosystem type by adding support for custom authentication options. It updates the useUpdateEcosystem hook to use the new structure and modifies the AuthOptionsForm component to manage these options, including a new CustomAuthOptionsForm.

Detailed summary

  • Added customAuthOptions to the Ecosystem type.
  • Updated useUpdateEcosystem to accept the new Ecosystem structure.
  • Modified AuthOptionsForm for handling authentication options.
  • Introduced CustomAuthOptionsForm for custom authentication endpoint management.
  • Enhanced UI with new form fields for custom headers and endpoint URL.

✨ Ask PR-Codex anything about this PR by commenting with /codex {your question}

@vercel
Copy link

vercel bot commented Oct 18, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
thirdweb-www ✅ Ready (Inspect) Visit Preview 💬 Add feedback Oct 18, 2024 4:50am
3 Skipped Deployments
Name Status Preview Comments Updated (UTC)
docs-v2 ⬜️ Skipped (Inspect) Oct 18, 2024 4:50am
thirdweb_playground ⬜️ Skipped (Inspect) Oct 18, 2024 4:50am
wallet-ui ⬜️ Skipped (Inspect) Oct 18, 2024 4:50am

@vercel vercel bot temporarily deployed to Preview – wallet-ui October 18, 2024 02:08 Inactive
@vercel vercel bot temporarily deployed to Preview – thirdweb_playground October 18, 2024 02:08 Inactive
@changeset-bot
Copy link

changeset-bot bot commented Oct 18, 2024

⚠️ No Changeset found

Latest commit: 0f4e662

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

@vercel vercel bot temporarily deployed to Preview – docs-v2 October 18, 2024 02:08 Inactive
@graphite-app
Copy link
Contributor

graphite-app bot commented Oct 18, 2024

Your org has enabled the Graphite merge queue for merging into main

Add the label “merge-queue” to the PR and Graphite will automatically add it to the merge queue when it’s ready to merge. Or use the label “hotfix” to add to the merge queue as a hot fix.

You must have a Graphite account and log in to Graphite in order to use the merge queue. Sign up using this link.

@github-actions github-actions bot added the Dashboard Involves changes to the Dashboard. label Oct 18, 2024
Copy link
Member Author

This stack of pull requests is managed by Graphite. Learn more about stacking.

Join @joaquim-verges and the rest of your teammates on Graphite Graphite

@codecov
Copy link

codecov bot commented Oct 18, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 45.29%. Comparing base (e67a300) to head (0f4e662).
Report is 1 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #5075   +/-   ##
=======================================
  Coverage   45.29%   45.29%           
=======================================
  Files        1059     1059           
  Lines       54728    54728           
  Branches     3954     3954           
=======================================
  Hits        24791    24791           
  Misses      29246    29246           
  Partials      691      691           
Flag Coverage Δ *Carryforward flag
legacy_packages 65.68% <ø> (ø) Carriedforward from e67a300
packages 40.24% <ø> (ø)

*This pull request uses carry forward flags. Click here to find out more.

@github-actions
Copy link
Contributor

github-actions bot commented Oct 18, 2024

size-limit report 📦

Path Size Loading time (3g) Running time (snapdragon) Total time
thirdweb (esm) 42.81 KB (0%) 857 ms (0%) 861 ms (+13% 🔺) 1.8 s
thirdweb (cjs) 102.66 KB (0%) 2.1 s (0%) 1.6 s (+28.61% 🔺) 3.6 s
thirdweb (minimal + tree-shaking) 4.84 KB (0%) 97 ms (0%) 38 ms (+10.14% 🔺) 135 ms
thirdweb/chains (tree-shaking) 498 B (0%) 10 ms (0%) 107 ms (+1077.52% 🔺) 117 ms
thirdweb/react (minimal + tree-shaking) 17.36 KB (0%) 348 ms (0%) 305 ms (+277.39% 🔺) 652 ms

@joaquim-verges joaquim-verges marked this pull request as ready for review October 18, 2024 02:16
@joaquim-verges joaquim-verges force-pushed the feat_add_custom_auth_options_to_ecosystem_settings branch from b65259c to 53c2997 Compare October 18, 2024 02:45
@vercel vercel bot temporarily deployed to Preview – docs-v2 October 18, 2024 02:45 Inactive
@vercel vercel bot temporarily deployed to Preview – thirdweb_playground October 18, 2024 02:45 Inactive
@vercel vercel bot temporarily deployed to Preview – wallet-ui October 18, 2024 02:45 Inactive
@joaquim-verges joaquim-verges force-pushed the feat_add_custom_auth_options_to_ecosystem_settings branch from 53c2997 to 0157834 Compare October 18, 2024 04:24
@vercel vercel bot temporarily deployed to Preview – docs-v2 October 18, 2024 04:24 Inactive
@vercel vercel bot temporarily deployed to Preview – thirdweb_playground October 18, 2024 04:24 Inactive
@vercel vercel bot temporarily deployed to Preview – wallet-ui October 18, 2024 04:24 Inactive
@joaquim-verges joaquim-verges requested a review from jnsdls October 18, 2024 04:27
@vercel vercel bot temporarily deployed to Preview – wallet-ui October 18, 2024 04:32 Inactive
@vercel vercel bot temporarily deployed to Preview – docs-v2 October 18, 2024 04:32 Inactive
@vercel vercel bot temporarily deployed to Preview – thirdweb_playground October 18, 2024 04:32 Inactive
Comment on lines +122 to +129
onError: (error) => {
const message =
error instanceof Error ? error.message : "Failed to update ecosystem";
toast.error(message);
},
onSuccess: () => {
toast.success("Custom Auth Options updated");
},
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this can be improved to use toast.promise etc @MananTank or @kien-ngo maybe you can clean it up down the line - for now this is fine

@graphite-app
Copy link
Contributor

graphite-app bot commented Oct 18, 2024

Merge activity

## Problem solved

![CleanShot 2024-10-18 at 14.59.26.png](https://graphite-user-uploaded-assets-prod.s3.amazonaws.com/GGPGC1k4LEcpDtkOsVBe/73287a0a-c367-4a6e-9897-5df7c2935df6.png)

<!-- start pr-codex -->

---

## PR-Codex overview
This PR focuses on enhancing the `Ecosystem` type and its related components by adding support for custom authentication options, including headers and endpoints, and updating the mutation logic to accommodate these changes.

### Detailed summary
- Added `customAuthOptions` to the `Ecosystem` type.
- Updated `useUpdateEcosystem` to accept `Ecosystem` directly.
- Modified mutation logic to handle the new `Ecosystem` structure.
- Introduced `CustomAuthOptionsForm` for managing custom authentication endpoints and headers.
- Enhanced UI components to reflect new functionality.

> ✨ Ask PR-Codex anything about this PR by commenting with `/codex {your question}`

<!-- end pr-codex -->
@joaquim-verges joaquim-verges force-pushed the feat_add_custom_auth_options_to_ecosystem_settings branch from c324cf9 to 0f4e662 Compare October 18, 2024 04:47
@vercel vercel bot temporarily deployed to Preview – wallet-ui October 18, 2024 04:47 Inactive
@vercel vercel bot temporarily deployed to Preview – docs-v2 October 18, 2024 04:47 Inactive
@vercel vercel bot temporarily deployed to Preview – thirdweb_playground October 18, 2024 04:47 Inactive
@graphite-app graphite-app bot merged commit 0f4e662 into main Oct 18, 2024
30 checks passed
@graphite-app graphite-app bot deleted the feat_add_custom_auth_options_to_ecosystem_settings branch October 18, 2024 04:50
@vercel vercel bot temporarily deployed to Production – thirdweb_playground October 18, 2024 04:50 Inactive
@vercel vercel bot temporarily deployed to Production – docs-v2 October 18, 2024 04:50 Inactive
@vercel vercel bot temporarily deployed to Production – wallet-ui October 18, 2024 04:50 Inactive
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Dashboard Involves changes to the Dashboard.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants